package com.xuyoupeng.springframework.aop;

/**
 * @author xuyoupneg
 * @description TODO
 * @date 2024/4/1 23:16
 */
public class TargetSource {

    private final Object target;

    public TargetSource(Object object) {
        this.target = object;
    }

    public Class<?>[] getTargetClass() {
        return this.target.getClass().getInterfaces();
    }

    public Object getTarget() {
        return this.target;
    }
}
